//
//  InputPupilInfoViewController.h
//  ConghuiEducation
//
//  Created by leo on 16/9/1.
//  Copyright © 2016年 sample. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Pupil.h"

@interface InputPupilInfoViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate>{
    IBOutlet UITableView *_tableView;
    IBOutlet UIButton *avatarButton;
    IBOutlet UITextField *nameTextField;
    IBOutlet UITextField *fatherNameTextField;
    IBOutlet UITextField *phoneNumberTextField;
    IBOutlet UITextField *addressTextField;
    
    IBOutlet UIButton *gradeButton;
    IBOutlet UIButton *classButton;
    
    IBOutlet UISwitch *dinner_fee_switch;
    IBOutlet UISwitch *guideWord_fee_switch;
    
    Pupil *pupil;
    BOOL isNewPupil; //是否新建学生档案
}

@property (nonatomic,strong)IBOutlet UITableView *_tableView;
@property (nonatomic,strong)IBOutlet UIButton *avatarButton;
@property (nonatomic,strong)IBOutlet UITextField *nameTextField;
@property (nonatomic,strong)IBOutlet UITextField *fatherNameTextField;
@property (nonatomic,strong)IBOutlet UITextField *phoneNumberTextField;
@property (nonatomic,strong)IBOutlet UITextField *addressTextField;

@property (nonatomic,strong)IBOutlet UIButton *gradeButton;
@property (nonatomic,strong)IBOutlet UIButton *classButton;

@property (nonatomic,strong)IBOutlet UISwitch *dinner_fee_switch;
@property (nonatomic,strong)IBOutlet UISwitch *guideWord_fee_switch;
@property (nonatomic,strong)Pupil *pupil;
@property (nonatomic,assign)BOOL isNewPupil; //是否新建学生档案

-(IBAction)avatarButtonClick;
-(IBAction)gradeButtonClick;
-(IBAction)classButtonClick;

@end
